<!DOCTYPE html>
<html>
    <head>
        <title>demo</title>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
        <style>
            body {
                font-family: Monospace;
                background-color: #f0f0f0;
                margin: 0px;
                overflow: hidden;
            }
        </style>
    </head>
    <body>
        <script src="https://cdn.bootcdn.net/ajax/libs/three.js/73/three.js"></script>
        <script src="https://cdn.bootcdn.net/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
        <script src="https://cdn.bootcdn.net/ajax/libs/tween.js/0.11.0/Tween.min.js"></script>
		<script src="https://unpkg.com/three@0.73.1/examples/js/controls/TrackballControls.js"></script>
        <script src="https://cdn.bootcdn.net/ajax/libs/stats.js/10/Stats.min.js"></script>
        <script>

            var jsonstr = '[{"boxId":"9853339840001_7100100N604P0400700_0","x":-59.099998,"y":-87.449997,"z":-539.200012,"width":113.599998,"height":52.099998,"length":113.599998,"weight":351.500000,"platform":"platform09","order":1,"material":"","type":1,"place":100},{"boxId":"9846229570001_4580100G779P0400700_0","x":-47.900002,"y":-20.799999,"z":-528.400024,"width":136.000000,"height":81.199997,"length":92.000000,"weight":160.000000,"platform":"platform09","order":2,"material":"","type":1,"place":100},{"boxId":"9846230810001_4580100G779P0400700_0","x":-47.900002,"y":60.400002,"z":-528.400024,"width":136.000000,"height":81.199997,"length":92.000000,"weight":160.000000,"platform":"platform09","order":3,"material":"","type":1,"place":100},{"boxId":"9846229620001_4580100G779P0400700_0","x":66.099998,"y":-72.900002,"z":-528.000000,"width":92.000000,"height":81.199997,"length":136.000000,"weight":160.000000,"platform":"platform09","order":4,"material":"","type":1,"place":100},{"boxId":"9849729080001_4580100G779P0400700_0","x":66.099998,"y":8.300000,"z":-528.000000,"width":92.000000,"height":81.199997,"length":136.000000,"weight":160.000000,"platform":"platform09","order":5,"material":"","type":1,"place":100},{"boxId":"9849729240001_4580100G779P0400700_0","x":-47.900002,"y":-72.900002,"z":-436.399994,"width":136.000000,"height":81.199997,"length":92.000000,"weight":160.000000,"platform":"platform09","order":6,"material":"","type":1,"place":100},{"boxId":"9849729390001_4580100G779P0400700_0","x":-47.900002,"y":8.300000,"z":-436.399994,"width":136.000000,"height":81.199997,"length":92.000000,"weight":160.000000,"platform":"platform09","order":7,"material":"","type":1,"place":100},{"boxId":"9846229570001_4580100G778P0400700_0","x":66.099998,"y":78.900002,"z":-528.000000,"width":92.000000,"height":60.000000,"length":136.000000,"weight":116.500000,"platform":"platform09","order":8,"material":"","type":1,"place":100},{"boxId":"9846230810001_4580100G778P0400700_0","x":-47.900002,"y":78.900002,"z":-436.399994,"width":136.000000,"height":60.000000,"length":92.000000,"weight":116.500000,"platform":"platform09","order":9,"material":"","type":1,"place":100},{"boxId":"9846229620001_4580100G778P0400700_0","x":66.099998,"y":-83.500000,"z":-392.000000,"width":92.000000,"height":60.000000,"length":136.000000,"weight":116.500000,"platform":"platform09","order":10,"material":"","type":1,"place":100},{"boxId":"9849729080001_4580100G778P0400700_0","x":66.099998,"y":-23.500000,"z":-392.000000,"width":92.000000,"height":60.000000,"length":136.000000,"weight":116.500000,"platform":"platform09","order":11,"material":"","type":1,"place":100},{"boxId":"9849729240001_4580100G778P0400700_0","x":66.099998,"y":36.500000,"z":-392.000000,"width":92.000000,"height":60.000000,"length":136.000000,"weight":116.500000,"platform":"platform09","order":12,"material":"","type":1,"place":100},{"boxId":"9849729390001_4580100G778P0400700_0","x":-47.900002,"y":-83.500000,"z":-344.399994,"width":136.000000,"height":60.000000,"length":92.000000,"weight":116.500000,"platform":"platform09","order":13,"material":"","type":1,"place":100},{"boxId":"9853665380001_8180190N847P0400700-2_1","x":-55.900002,"y":8.650000,"z":-338.399994,"width":120.000000,"height":124.300003,"length":80.000000,"weight":152.500000,"platform":"platform09","order":14,"material":"","type":1,"place":100},{"boxId":"9853665380001_8180190N847P0400700-2_0","x":60.099998,"y":-51.349998,"z":-264.000000,"width":80.000000,"height":124.300003,"length":120.000000,"weight":152.500000,"platform":"platform09","order":15,"material":"","type":1,"place":100},{"boxId":"9853665380001_8180190N847P0400700-1_0","x":-55.900002,"y":-51.349998,"z":-258.399994,"width":120.000000,"height":124.300003,"length":80.000000,"weight":152.500000,"platform":"platform09","order":16,"material":"","type":1,"place":100},{"boxId":"9842643080001_00I69207027450346777-1_0","x":-55.900002,"y":-53.099998,"z":-164.000000,"width":120.000000,"height":120.800003,"length":80.000000,"weight":194.000000,"platform":"platform09","order":17,"material":"","type":1,"place":100},{"boxId":"9849979370001_00I69207027450346777-3_0","x":44.099998,"y":-53.099998,"z":-144.000000,"width":80.000000,"height":120.800003,"length":120.000000,"weight":194.000000,"platform":"platform09","order":18,"material":"","type":1,"place":100},{"boxId":"9852424700001_2450191V378P0400700_0","x":-55.900002,"y":-53.450001,"z":-84.000000,"width":120.000000,"height":120.099998,"length":80.000000,"weight":234.500000,"platform":"platform09","order":19,"material":"","type":1,"place":100},{"boxId":"9852522560001_2450191V378P0400700_0","x":44.099998,"y":-53.450001,"z":-24.000000,"width":80.000000,"height":120.099998,"length":120.000000,"weight":234.500000,"platform":"platform09","order":20,"material":"","type":1,"place":100},{"boxId":"9806482230001_5910101M554P0400700_0","x":-55.900002,"y":-54.200001,"z":-4.000000,"width":120.000000,"height":118.599998,"length":80.000000,"weight":156.500000,"platform":"platform09","order":21,"material":"","type":1,"place":100},{"boxId":"9847633090001_8940100V479P0400700-1_0","x":-55.900002,"y":-54.549999,"z":76.000000,"width":120.000000,"height":117.900002,"length":80.000000,"weight":186.500000,"platform":"platform09","order":22,"material":"","type":1,"place":100},{"boxId":"9849973190001_4580100X562P0400500-1_0","x":44.099998,"y":-54.549999,"z":96.000000,"width":80.000000,"height":117.900002,"length":120.000000,"weight":231.000000,"platform":"platform09","order":23,"material":"","type":1,"place":100},{"boxId":"9845244970001_17001013849P0400700-1_0","x":-55.900002,"y":-54.549999,"z":156.000000,"width":120.000000,"height":117.900002,"length":80.000000,"weight":200.500000,"platform":"platform09","order":24,"material":"","type":1,"place":100},{"boxId":"9845244460001_00I69207027392018080-1_0","x":44.099998,"y":-55.250000,"z":216.000000,"width":80.000000,"height":116.500000,"length":120.000000,"weight":158.000000,"platform":"platform09","order":25,"material":"","type":1,"place":100},{"boxId":"94267810103W445","x":-55.900002,"y":60.250000,"z":-164.000000,"width":120.000000,"height":105.900002,"length":80.000000,"weight":138.500000,"platform":"platform09","order":26,"material":"","type":1,"place":100},{"boxId":"9841197890001_49401917350P0500600_0","x":60.099998,"y":53.900002,"z":-264.000000,"width":80.000000,"height":86.199997,"length":120.000000,"weight":117.000000,"platform":"platform09","order":27,"material":"","type":1,"place":100},{"boxId":"9851668810001_00I69207027362001898_0","x":-55.900002,"y":52.799999,"z":-258.399994,"width":120.000000,"height":84.000000,"length":80.000000,"weight":53.000000,"platform":"platform09","order":28,"material":"","type":1,"place":100},{"boxId":"9845244880001_6080194S862P0400700_0","x":44.099998,"y":49.000000,"z":-144.000000,"width":80.000000,"height":83.400002,"length":120.000000,"weight":111.000000,"platform":"platform09","order":29,"material":"","type":1,"place":100},{"boxId":"9845243670001_1800190H032P0400700_0","x":-55.900002,"y":48.299999,"z":-84.000000,"width":120.000000,"height":83.400002,"length":80.000000,"weight":107.000000,"platform":"platform09","order":30,"material":"","type":1,"place":100},{"boxId":"9845290240001_7100101L592P0400700-1_0","x":44.099998,"y":47.900002,"z":-24.000000,"width":80.000000,"height":82.599998,"length":120.000000,"weight":107.500000,"platform":"platform09","order":31,"material":"","type":1,"place":100},{"boxId":"9851668800001_7810102Y264P0400700_0","x":-55.900002,"y":42.849998,"z":-4.000000,"width":120.000000,"height":75.500000,"length":80.000000,"weight":42.000000,"platform":"platform09","order":32,"material":"","type":1,"place":100},{"boxId":"9853220350001_2490101M826P0400700_0","x":-55.900002,"y":42.150002,"z":76.000000,"width":120.000000,"height":75.500000,"length":80.000000,"weight":122.500000,"platform":"platform09","order":33,"material":"","type":1,"place":100},{"boxId":"9851668810001_00I69207027362001904_0","x":44.099998,"y":41.849998,"z":96.000000,"width":80.000000,"height":74.900002,"length":120.000000,"weight":50.500000,"platform":"platform09","order":34,"material":"","type":1,"place":100},{"boxId":"9849977890001_2470101R659P0400700_0","x":-55.900002,"y":36.650002,"z":156.000000,"width":120.000000,"height":64.500000,"length":80.000000,"weight":80.500000,"platform":"platform09","order":35,"material":"","type":1,"place":100},{"boxId":"9840059090001_2470101Y344P0400700_0","x":44.099998,"y":27.400000,"z":216.000000,"width":80.000000,"height":48.799999,"length":120.000000,"weight":73.000000,"platform":"platform09","order":36,"material":"","type":1,"place":100},{"boxId":"9840061160001_6080191M408P0400700_0","x":44.099998,"y":75.849998,"z":216.000000,"width":80.000000,"height":48.099998,"length":120.000000,"weight":66.000000,"platform":"platform09","order":37,"material":"","type":1,"place":100},{"boxId":"9806481640001_00I69207027460845958-1_0","x":-55.900002,"y":-89.500000,"z":236.000000,"width":120.000000,"height":48.000000,"length":80.000000,"weight":64.500000,"platform":"platform09","order":38,"material":"","type":1,"place":100},{"boxId":"9849979370001_00I69207027310113653-1_0","x":-58.400002,"y":-5.500000,"z":237.500000,"width":115.000000,"height":120.000000,"length":77.000000,"weight":220.500000,"platform":"platform09","order":39,"material":"","type":1,"place":100},{"boxId":"9849979370001_00I69207027310113653-2_1","x":-58.400002,"y":-53.500000,"z":314.500000,"width":115.000000,"height":120.000000,"length":77.000000,"weight":220.500000,"platform":"platform09","order":40,"material":"","type":1,"place":100},{"boxId":"9849979370001_00I69207027310113653-2_0","x":56.599998,"y":-53.500000,"z":314.500000,"width":115.000000,"height":120.000000,"length":77.000000,"weight":220.500000,"platform":"platform09","order":41,"material":"","type":1,"place":100},{"boxId":"9847633670001_00I69207027310113653-2_0","x":-58.400002,"y":-53.500000,"z":391.500000,"width":115.000000,"height":120.000000,"length":77.000000,"weight":220.500000,"platform":"platform09","order":42,"material":"","type":1,"place":100},{"boxId":"9847633670001_00I69207027310113653-1_0","x":56.599998,"y":-53.500000,"z":391.500000,"width":115.000000,"height":120.000000,"length":77.000000,"weight":220.500000,"platform":"platform09","order":43,"material":"","type":1,"place":100},{"boxId":"9857482850001_00I69207027421429645-1_0","x":-77.400002,"y":57.700001,"z":314.500000,"width":77.000000,"height":102.400002,"length":77.000000,"weight":68.000000,"platform":"platform09","order":44,"material":"","type":1,"place":100},{"boxId":"9857534770001_00I69207027421429645-1_0","x":37.599998,"y":57.700001,"z":314.500000,"width":77.000000,"height":102.400002,"length":77.000000,"weight":68.000000,"platform":"platform09","order":45,"material":"","type":1,"place":100},{"boxId":"9845247840001_00J69207027111365772_0","x":-77.400002,"y":48.150002,"z":391.500000,"width":77.000000,"height":83.300003,"length":77.000000,"weight":63.500000,"platform":"platform09","order":46,"material":"","type":1,"place":100},{"boxId":"9841198170001_3840190F687P0400700_0","x":37.599998,"y":47.849998,"z":391.500000,"width":77.000000,"height":82.699997,"length":77.000000,"weight":74.500000,"platform":"platform09","order":47,"material":"","type":1,"place":100},{"boxId":"9843793370001_00I69207027510465815-1_0","x":-77.400002,"y":-72.550003,"z":468.500000,"width":77.000000,"height":81.900002,"length":77.000000,"weight":66.500000,"platform":"platform09","order":48,"material":"","type":1,"place":100},{"boxId":"9851621510001_00I69207027431467990_0","x":-77.400002,"y":83.099998,"z":237.500000,"width":77.000000,"height":57.200001,"length":77.000000,"weight":35.000000,"platform":"platform09","order":49,"material":"","type":1,"place":100},{"boxId":"9843793360001_6080191S140P0400700_0","x":-77.400002,"y":-7.550000,"z":468.500000,"width":77.000000,"height":48.099998,"length":77.000000,"weight":39.500000,"platform":"platform09","order":50,"material":"","type":1,"place":100},{"boxId":"9845287060001_3600191M884P0400701_0","x":-87.900002,"y":45.750000,"z":474.000000,"width":56.000000,"height":58.500000,"length":88.000000,"weight":43.000000,"platform":"platform09","order":51,"material":"","type":1,"place":100},{"boxId":"9853334520001_6200100R771P0400700-1_0","x":-71.900002,"y":-84.250000,"z":546.000000,"width":88.000000,"height":58.500000,"length":56.000000,"weight":165.000000,"platform":"platform09","order":52,"material":"","type":1,"place":100},{"boxId":"9853334910001_7840190H255P0400700_0","x":-71.900002,"y":-25.750000,"z":546.000000,"width":88.000000,"height":58.500000,"length":56.000000,"weight":95.000000,"platform":"platform09","order":53,"material":"","type":1,"place":100},{"boxId":"9856817350001_6200100R771P0400700-1_0","x":-71.900002,"y":32.750000,"z":546.000000,"width":88.000000,"height":58.500000,"length":56.000000,"weight":165.000000,"platform":"platform09","order":54,"material":"","type":1,"place":100},{"boxId":"9840059290001_2450191V379P0400700-1_0","x":-8.900000,"y":-54.849998,"z":470.000000,"width":60.000000,"height":117.300003,"length":80.000000,"weight":103.000000,"platform":"platform09","order":55,"material":"","type":1,"place":100},{"boxId":"9832596330001_C3201028871P0500700_0","x":2.100000,"y":-55.599998,"z":550.000000,"width":60.000000,"height":115.800003,"length":80.000000,"weight":81.000000,"platform":"platform09","order":56,"material":"","type":1,"place":100},{"boxId":"9847633670001_C2001063685P0500700-3_0","x":-8.900000,"y":44.750000,"z":470.000000,"width":60.000000,"height":81.900002,"length":80.000000,"weight":61.500000,"platform":"platform09","order":57,"material":"","type":1,"place":100},{"boxId":"9852527580001_C26019EE341P0500700-1_0","x":2.100000,"y":32.349998,"z":550.000000,"width":60.000000,"height":60.099998,"length":80.000000,"weight":28.000000,"platform":"platform09","order":58,"material":"","type":1,"place":100},{"boxId":"9849973190001_1700100J315P0400700-2_0","x":50.099998,"y":89.800003,"z":-420.000000,"width":60.000000,"height":46.599998,"length":80.000000,"weight":34.000000,"platform":"platform09","order":59,"material":"","type":1,"place":100},{"boxId":"9854703100001_78101946337P0400700_0","x":51.099998,"y":-78.750000,"z":469.500000,"width":60.000000,"height":69.500000,"length":79.000000,"weight":19.500000,"platform":"platform09","order":60,"material":"","type":1,"place":100},{"boxId":"9855450010001_78101946337P0400700_0","x":51.099998,"y":-9.250000,"z":469.500000,"width":60.000000,"height":69.500000,"length":79.000000,"weight":19.500000,"platform":"platform09","order":61,"material":"","type":1,"place":100},{"boxId":"9844940270001_35601942729P0400703_0","x":-81.900002,"y":87.300003,"z":-329.899994,"width":68.000000,"height":33.000000,"length":63.000000,"weight":17.000000,"platform":"platform09","order":62,"material":"","type":1,"place":100},{"boxId":"9853596760001_6490190H657P0400700_0","x":-75.150002,"y":86.750000,"z":553.250000,"width":81.500000,"height":49.500000,"length":41.500000,"weight":50.000000,"platform":"platform09","order":63,"material":"","type":1,"place":100},{"boxId":"9843793310001_00I69207027321565214-1_0","x":-76.650002,"y":88.150002,"z":175.750000,"width":78.500000,"height":38.500000,"length":40.500000,"weight":14.500000,"platform":"platform09","order":64,"material":"","type":1,"place":100},{"boxId":"9845290240001_3440102C181P0400700-2_0","x":-95.650002,"y":94.250000,"z":469.250000,"width":40.500000,"height":38.500000,"length":78.500000,"weight":15.000000,"platform":"platform09","order":65,"material":"","type":1,"place":100},{"boxId":"9840060630001_7810102N170P0400700-1_0","x":-7.650000,"y":81.650002,"z":549.250000,"width":40.500000,"height":38.500000,"length":78.500000,"weight":4.500000,"platform":"platform09","order":66,"material":"","type":1,"place":100},{"boxId":"9853595410001_7810100F983P0400701_0","x":41.349998,"y":44.750000,"z":469.250000,"width":40.500000,"height":38.500000,"length":78.500000,"weight":23.000000,"platform":"platform09","order":67,"material":"","type":1,"place":100},{"boxId":"9857535630001_5540100G762P0400500_0","x":41.349998,"y":83.250000,"z":469.250000,"width":40.500000,"height":38.500000,"length":78.500000,"weight":36.500000,"platform":"platform09","order":68,"material":"","type":1,"place":100},{"boxId":"9857532480001_5540100G762P0400500_0","x":71.349998,"y":-94.250000,"z":529.250000,"width":78.500000,"height":38.500000,"length":40.500000,"weight":36.500000,"platform":"platform09","order":69,"material":"","type":1,"place":100},{"boxId":"9856538730002_2470101N995_2","x":-81.400002,"y":93.099998,"z":13.000000,"width":69.000000,"height":25.000000,"length":46.000000,"weight":11.200000,"platform":"platform09","order":70,"material":"","type":1,"place":100},{"boxId":"9856538730002_2470101N995_1","x":-81.400002,"y":92.400002,"z":93.000000,"width":69.000000,"height":25.000000,"length":46.000000,"weight":11.200000,"platform":"platform09","order":71,"material":"","type":1,"place":100},{"boxId":"9856538730002_2470101N995_0","x":27.100000,"y":91.800003,"z":70.500000,"width":46.000000,"height":25.000000,"length":69.000000,"weight":11.200000,"platform":"platform09","order":72,"material":"","type":1,"place":100},{"boxId":"9849975630001_00I69207027490317586_0","x":71.199997,"y":-47.500000,"z":529.400024,"width":78.199997,"height":55.000000,"length":40.200001,"weight":9.500000,"platform":"platform09","order":73,"material":"","type":1,"place":100},{"boxId":"9857099250001_5860100L225P0400700_0","x":-85.650002,"y":90.900002,"z":136.350006,"width":60.500000,"height":44.000000,"length":38.299999,"weight":8.850000,"platform":"platform09","order":74,"material":"","type":1,"place":100},{"boxId":"9832822780001_00J69207027091215108_0","x":62.000000,"y":2.000000,"z":530.349976,"width":59.799999,"height":44.000000,"length":38.299999,"weight":10.240000,"platform":"platform09","order":75,"material":"","type":1,"place":100},{"boxId":"9845286070001_5910191R777P0400700-1_0","x":62.000000,"y":46.000000,"z":530.349976,"width":59.799999,"height":44.000000,"length":38.299999,"weight":8.440000,"platform":"platform09","order":76,"material":"","type":1,"place":100},{"boxId":"9845244880001_6080194S861P0400700_0","x":39.099998,"y":84.250000,"z":-353.500000,"width":38.000000,"height":35.500000,"length":53.000000,"weight":11.440000,"platform":"platform09","order":77,"material":"","type":1,"place":100},{"boxId":"9841200130001_C250190Q075P0400600_0","x":77.099998,"y":84.250000,"z":-353.500000,"width":38.000000,"height":35.500000,"length":53.000000,"weight":13.580000,"platform":"platform09","order":78,"material":"","type":1,"place":100},{"boxId":"9845248440001_8180191B451P0400700_0","x":-21.400000,"y":88.550003,"z":-317.399994,"width":53.000000,"height":35.500000,"length":38.000000,"weight":2.500000,"platform":"platform09","order":79,"material":"","type":1,"place":100},{"boxId":"9857620940001_C1801034268P0500700_0","x":-87.650002,"y":104.099998,"z":-499.049988,"width":56.500000,"height":6.200000,"length":33.299999,"weight":1.160000,"platform":"platform09","order":80,"material":"","type":1,"place":100},{"boxId":"9837443970001_1880100F104P0400500_0","x":-97.199997,"y":105.550003,"z":-534.549988,"width":37.400002,"height":9.100000,"length":37.700001,"weight":1.420000,"platform":"platform09","order":81,"material":"","type":1,"place":100},{"boxId":"9841198170001_3840190F688P0400700_0","x":-29.150000,"y":88.300003,"z":-355.149994,"width":37.500000,"height":35.000000,"length":37.500000,"weight":6.080000,"platform":"platform09","order":82,"material":"","type":1,"place":100},{"boxId":"9853690310001_4220190L699P0400700_1","x":-97.400002,"y":103.800003,"z":-236.899994,"width":37.000000,"height":18.000000,"length":37.000000,"weight":37.250000,"platform":"platform09","order":83,"material":"","type":1,"place":100},{"boxId":"9853690310001_4220190L699P0400700_0","x":-97.400002,"y":103.800003,"z":-273.899994,"width":37.000000,"height":18.000000,"length":37.000000,"weight":37.250000,"platform":"platform09","order":84,"material":"","type":1,"place":100},{"boxId":"9856817400001_00I69207027461764067_4","x":-60.400002,"y":103.800003,"z":-236.899994,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":85,"material":"","type":1,"place":100},{"boxId":"9856817400001_00I69207027461764067_3","x":-60.400002,"y":103.800003,"z":-273.899994,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":86,"material":"","type":1,"place":100},{"boxId":"9856817400001_00I69207027461764067_2","x":-23.400000,"y":103.800003,"z":-236.899994,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":87,"material":"","type":1,"place":100},{"boxId":"9856817400001_00I69207027461764067_1","x":-23.400000,"y":103.800003,"z":-273.899994,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":88,"material":"","type":1,"place":100},{"boxId":"9856817400001_00I69207027461764067_0","x":22.600000,"y":99.699997,"z":-185.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":89,"material":"","type":1,"place":100},{"boxId":"9856812970001_00I69207027461764067_4","x":59.599998,"y":99.699997,"z":-185.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":90,"material":"","type":1,"place":100},{"boxId":"9856812970001_00I69207027461764067_3","x":22.600000,"y":99.699997,"z":-148.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":91,"material":"","type":1,"place":100},{"boxId":"9856812970001_00I69207027461764067_2","x":59.599998,"y":99.699997,"z":-148.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":92,"material":"","type":1,"place":100},{"boxId":"9856812970001_00I69207027461764067_1","x":22.600000,"y":99.699997,"z":-111.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":93,"material":"","type":1,"place":100},{"boxId":"9856812970001_00I69207027461764067_0","x":59.599998,"y":99.699997,"z":-111.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":94,"material":"","type":1,"place":100},{"boxId":"9856817440001_00I69207027461764067_4","x":-97.400002,"y":99.000000,"z":-62.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":95,"material":"","type":1,"place":100},{"boxId":"9856817440001_00I69207027461764067_3","x":-97.400002,"y":99.000000,"z":-99.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":96,"material":"","type":1,"place":100},{"boxId":"9856817440001_00I69207027461764067_2","x":-60.400002,"y":99.000000,"z":-62.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":97,"material":"","type":1,"place":100},{"boxId":"9856817440001_00I69207027461764067_1","x":-60.400002,"y":99.000000,"z":-99.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":98,"material":"","type":1,"place":100},{"boxId":"9856817440001_00I69207027461764067_0","x":-23.400000,"y":99.000000,"z":-62.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":99,"material":"","type":1,"place":100},{"boxId":"9856813040001_00I69207027461764067_4","x":-23.400000,"y":99.000000,"z":-99.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":100,"material":"","type":1,"place":100},{"boxId":"9856813040001_00I69207027461764067_3","x":22.600000,"y":98.199997,"z":-65.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":101,"material":"","type":1,"place":100},{"boxId":"9856813040001_00I69207027461764067_2","x":59.599998,"y":98.199997,"z":-65.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":102,"material":"","type":1,"place":100},{"boxId":"9856813040001_00I69207027461764067_1","x":22.600000,"y":98.199997,"z":-28.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":103,"material":"","type":1,"place":100},{"boxId":"9856813040001_00I69207027461764067_0","x":59.599998,"y":98.199997,"z":-28.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":104,"material":"","type":1,"place":100},{"boxId":"9856817320001_00I69207027461764067_4","x":22.600000,"y":98.199997,"z":8.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":105,"material":"","type":1,"place":100},{"boxId":"9856817320001_00I69207027461764067_3","x":59.599998,"y":98.199997,"z":8.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":106,"material":"","type":1,"place":100},{"boxId":"9856817320001_00I69207027461764067_2","x":-28.400000,"y":89.599998,"z":17.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":107,"material":"","type":1,"place":100},{"boxId":"9856817320001_00I69207027461764067_1","x":-28.400000,"y":89.599998,"z":-19.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":108,"material":"","type":1,"place":100},{"boxId":"9856817320001_00I69207027461764067_0","x":-28.400000,"y":88.900002,"z":97.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":109,"material":"","type":1,"place":100},{"boxId":"9856817750001_00I69207027461764067_4","x":-28.400000,"y":88.900002,"z":60.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":110,"material":"","type":1,"place":100},{"boxId":"9856817750001_00I69207027461764067_3","x":22.600000,"y":88.300003,"z":123.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":111,"material":"","type":1,"place":100},{"boxId":"9856817750001_00I69207027461764067_2","x":59.599998,"y":88.300003,"z":123.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":112,"material":"","type":1,"place":100},{"boxId":"9856817750001_00I69207027461764067_1","x":-36.900002,"y":77.900002,"z":137.000000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":113,"material":"","type":1,"place":100},{"boxId":"9856817750001_00I69207027461764067_0","x":-36.900002,"y":95.900002,"z":137.000000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":114,"material":"","type":1,"place":100},{"boxId":"9856815530001_00I69207027461764067_4","x":-20.400000,"y":63.500000,"z":257.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":115,"material":"","type":1,"place":100},{"boxId":"9856815530001_00I69207027461764067_3","x":-20.400000,"y":81.500000,"z":257.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":116,"material":"","type":1,"place":100},{"boxId":"9856815530001_00I69207027461764067_2","x":-20.400000,"y":99.500000,"z":257.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":117,"material":"","type":1,"place":100},{"boxId":"9856815530001_00I69207027461764067_1","x":-20.400000,"y":63.500000,"z":220.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":118,"material":"","type":1,"place":100},{"boxId":"9856815530001_00I69207027461764067_0","x":-20.400000,"y":81.500000,"z":220.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":119,"material":"","type":1,"place":100},{"boxId":"9856815520001_00I69207027461764067_4","x":-20.400000,"y":99.500000,"z":220.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":120,"material":"","type":1,"place":100},{"boxId":"9856815520001_00I69207027461764067_3","x":-20.400000,"y":15.500000,"z":334.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":121,"material":"","type":1,"place":100},{"boxId":"9856815520001_00I69207027461764067_2","x":-20.400000,"y":33.500000,"z":334.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":122,"material":"","type":1,"place":100},{"boxId":"9856815520001_00I69207027461764067_1","x":-20.400000,"y":51.500000,"z":334.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":123,"material":"","type":1,"place":100},{"boxId":"9856815520001_00I69207027461764067_0","x":-20.400000,"y":69.500000,"z":334.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":124,"material":"","type":1,"place":100},{"boxId":"9856815540001_00I69207027461764067_4","x":-20.400000,"y":87.500000,"z":334.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":125,"material":"","type":1,"place":100},{"boxId":"9856815540001_00I69207027461764067_3","x":-20.400000,"y":15.500000,"z":297.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":126,"material":"","type":1,"place":100},{"boxId":"9856815540001_00I69207027461764067_2","x":-20.400000,"y":33.500000,"z":297.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":127,"material":"","type":1,"place":100},{"boxId":"9856815540001_00I69207027461764067_1","x":-20.400000,"y":51.500000,"z":297.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":128,"material":"","type":1,"place":100},{"boxId":"9856815540001_00I69207027461764067_0","x":-20.400000,"y":69.500000,"z":297.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":129,"material":"","type":1,"place":100},{"boxId":"9856817770001_00I69207027461764067_4","x":-20.400000,"y":87.500000,"z":297.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":130,"material":"","type":1,"place":100},{"boxId":"9856817770001_00I69207027461764067_3","x":94.599998,"y":15.500000,"z":334.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":131,"material":"","type":1,"place":100},{"boxId":"9856817770001_00I69207027461764067_2","x":94.599998,"y":33.500000,"z":334.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":132,"material":"","type":1,"place":100},{"boxId":"9856817770001_00I69207027461764067_1","x":94.599998,"y":51.500000,"z":334.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":133,"material":"","type":1,"place":100},{"boxId":"9856817770001_00I69207027461764067_0","x":94.599998,"y":69.500000,"z":334.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":134,"material":"","type":1,"place":100},{"boxId":"9856815510001_00I69207027461764067_4","x":94.599998,"y":87.500000,"z":334.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":135,"material":"","type":1,"place":100},{"boxId":"9856815510001_00I69207027461764067_3","x":94.599998,"y":15.500000,"z":297.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":136,"material":"","type":1,"place":100},{"boxId":"9856815510001_00I69207027461764067_2","x":94.599998,"y":33.500000,"z":297.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":137,"material":"","type":1,"place":100},{"boxId":"9856815510001_00I69207027461764067_1","x":94.599998,"y":51.500000,"z":297.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":138,"material":"","type":1,"place":100},{"boxId":"9856815510001_00I69207027461764067_0","x":94.599998,"y":69.500000,"z":297.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":139,"material":"","type":1,"place":100},{"boxId":"9856815500001_00I69207027461764067_4","x":94.599998,"y":87.500000,"z":297.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":140,"material":"","type":1,"place":100},{"boxId":"9856815500001_00I69207027461764067_3","x":-97.400002,"y":98.800003,"z":411.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":141,"material":"","type":1,"place":100},{"boxId":"9856815500001_00I69207027461764067_2","x":-97.400002,"y":98.800003,"z":374.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":142,"material":"","type":1,"place":100},{"boxId":"9856815500001_00I69207027461764067_1","x":-60.400002,"y":98.800003,"z":411.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":143,"material":"","type":1,"place":100},{"boxId":"9856815500001_00I69207027461764067_0","x":-60.400002,"y":98.800003,"z":374.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":144,"material":"","type":1,"place":100},{"boxId":"9856817460001_00I69207027461764067_0","x":-20.400000,"y":15.500000,"z":411.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":145,"material":"","type":1,"place":100},{"boxId":"9856817460001_00I69207027461764067_4","x":-20.400000,"y":33.500000,"z":411.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":146,"material":"","type":1,"place":100},{"boxId":"9856817460001_00I69207027461764067_3","x":-20.400000,"y":51.500000,"z":411.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":147,"material":"","type":1,"place":100},{"boxId":"9856817460001_00I69207027461764067_2","x":-20.400000,"y":69.500000,"z":411.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":148,"material":"","type":1,"place":100},{"boxId":"9856817460001_00I69207027461764067_1","x":-20.400000,"y":87.500000,"z":411.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":149,"material":"","type":1,"place":100},{"boxId":"9856815430001_00I69207027461764067_4","x":-20.400000,"y":15.500000,"z":374.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":150,"material":"","type":1,"place":100},{"boxId":"9856815430001_00I69207027461764067_3","x":-20.400000,"y":33.500000,"z":374.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":151,"material":"","type":1,"place":100},{"boxId":"9856815430001_00I69207027461764067_2","x":-20.400000,"y":51.500000,"z":374.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":152,"material":"","type":1,"place":100},{"boxId":"9856815430001_00I69207027461764067_1","x":-20.400000,"y":69.500000,"z":374.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":153,"material":"","type":1,"place":100},{"boxId":"9856815430001_00I69207027461764067_0","x":-20.400000,"y":87.500000,"z":374.500000,"width":37.000000,"height":18.000000,"length":37.000000,"weight":36.799999,"platform":"platform09","order":154,"material":"","type":1,"place":100},{"boxId":"9843793320001_00J69207027040622625_0","x":17.850000,"y":100.949997,"z":411.750000,"width":37.500000,"height":23.500000,"length":36.500000,"weight":3.000000,"platform":"platform09","order":155,"material":"","type":1,"place":100},{"boxId":"9845244460001_00I69207027361499713-2_0","x":17.850000,"y":100.949997,"z":375.250000,"width":37.500000,"height":23.500000,"length":36.500000,"weight":4.660000,"platform":"platform09","order":156,"material":"","type":1,"place":100},{"boxId":"9843793420001_5860191A443P0400500_0","x":55.349998,"y":100.949997,"z":411.750000,"width":37.500000,"height":23.500000,"length":36.500000,"weight":4.220000,"platform":"platform09","order":157,"material":"","type":1,"place":100},{"boxId":"9843793400001_00J69207027151422693_0","x":55.349998,"y":100.949997,"z":375.250000,"width":37.500000,"height":23.500000,"length":36.500000,"weight":3.900000,"platform":"platform09","order":158,"material":"","type":1,"place":100},{"boxId":"9855680090001_00J69207027011490381-1_0","x":94.849998,"y":18.250000,"z":411.750000,"width":37.500000,"height":23.500000,"length":36.500000,"weight":1.570000,"platform":"platform09","order":159,"material":"","type":1,"place":100},{"boxId":"9828823900001_81801011429P0400500_0","x":94.849998,"y":38.750000,"z":411.750000,"width":37.500000,"height":17.500000,"length":36.500000,"weight":2.100000,"platform":"platform09","order":160,"material":"","type":1,"place":100},{"boxId":"9853334520001_4580190P899P0400500-2_0","x":94.849998,"y":56.250000,"z":411.750000,"width":37.500000,"height":17.500000,"length":36.500000,"weight":15.600000,"platform":"platform09","order":161,"material":"","type":1,"place":100},{"boxId":"9855680120001_00J69207027151434476_0","x":94.849998,"y":73.750000,"z":411.750000,"width":37.500000,"height":17.500000,"length":36.500000,"weight":10.920000,"platform":"platform09","order":162,"material":"","type":1,"place":100},{"boxId":"9843793270001_00I69207027422050938_0","x":-59.250000,"y":106.000000,"z":-533.450012,"width":38.500000,"height":10.000000,"length":35.500000,"weight":1.320000,"platform":"platform09","order":163,"material":"","type":1,"place":100},{"boxId":"9837445290001_2470100X261P0400700_0","x":-23.850000,"y":94.349998,"z":450.500000,"width":30.100000,"height":17.299999,"length":41.000000,"weight":4.300000,"platform":"platform09","order":164,"material":"","type":1,"place":100},{"boxId":"9853690310001_4220190L697P0400700_0","x":37.599998,"y":104.000000,"z":-306.500000,"width":35.000000,"height":14.000000,"length":35.000000,"weight":18.709999,"platform":"platform09","order":165,"material":"","type":1,"place":100},{"boxId":"9856817350001_00I69207027421952204-2_0","x":71.599998,"y":105.000000,"z":-307.500000,"width":33.000000,"height":16.000000,"length":33.000000,"weight":27.920000,"platform":"platform09","order":166,"material":"","type":1,"place":100},{"boxId":"9855680130001_C26010QQ662P0500800_0","x":-97.150002,"y":105.750000,"z":-564.650024,"width":37.500000,"height":9.500000,"length":22.500000,"weight":1.020000,"platform":"platform09","order":167,"material":"","type":1,"place":100},{"boxId":"9855671520001_4840190Q483P0400500_0","x":-59.650002,"y":105.750000,"z":-562.450012,"width":37.500000,"height":9.500000,"length":22.500000,"weight":0.860000,"platform":"platform09","order":168,"material":"","type":1,"place":100}]';
			var jsonstr2 = '{"container_length":1192.000000,"container_width":231.800003,"container_height":227.000000,"container_max_load":23000.000000,"container_type_name":"40GP"}'
            var objectArray= JSON.parse(jsonstr);
			var truckJsonObj = JSON.parse(jsonstr2);
            var container, stats;
            var camera, controls, scene, projector, renderer;
            var objects = [], plane;
            var mouse = new THREE.Vector2(), offset = new THREE.Vector3(), INTERSECTED, SELECTED; 
            init();
            animate();
            function init() {
                container = document.createElement( 'div' );
                document.body.appendChild( container );
                camera = new THREE.PerspectiveCamera( 70, window.innerWidth / window.innerHeight, 1, 10000 );
                camera.position.x = -600;
                camera.position.y = 400;
                camera.position.z = 1000;
                controls = new THREE.TrackballControls( camera );
                controls.rotateSpeed = 1.0;
                controls.zoomSpeed = 1.2;
                controls.panSpeed = 0.8;
                controls.noZoom = false;
                controls.noPan = true;
                controls.staticMoving = false;
                controls.dynamicDampingFactor = 0.3;
                scene = new THREE.Scene();
                var ambientLight = new THREE.AmbientLight( Math.random() *0xffffff );
                scene.add( ambientLight );
                var directionalLight = new THREE.DirectionalLight( Math.random() * 0xffffff );
                directionalLight.position.set( 0, 1, 0 );
                scene.add( directionalLight );
                var pointLight = new THREE.PointLight( 0xff0000, 1, 500 );
                pointLight.position.set( 0, 0, -200 );
                scene.add( pointLight );

                container_length = truckJsonObj.container_length;
                container_width = truckJsonObj.container_width;
                container_height = truckJsonObj.container_height;
                var cube_1 = new THREE.Mesh(
                    new THREE.BoxGeometry( container_width, container_height, container_length, 1,1,1 ), 
                    new THREE.MeshBasicMaterial( { color:0xefb73e, wireframe:true } )
                );
                cube_1.position.x = 0;
                cube_1.position.y = 0;
                cube_1.position.z = 0;
                scene.add( cube_1 );

                truck_head_length = 145;
                var truck_head_1 = new THREE.Mesh(
                    new THREE.BoxGeometry( 200, 100, truck_head_length, 1, 1, 5 ), 
                    new THREE.MeshBasicMaterial( { color: 0xffffff, wireframe:true } )
                );
                truck_head_1.position.x = 0;
                truck_head_1.position.y = -50;
                truck_head_1.position.z = -(container_length/2 + truck_head_length/2);
                scene.add( truck_head_1 );
                
                truck_head_length_2 = 80;
                var truck_head_2 = new THREE.Mesh(
                    new THREE.BoxGeometry( 170, 60, truck_head_length_2, 1, 0, 5 ), 
                    new THREE.MeshBasicMaterial( { color: 0xffffff, wireframe:true } )
                );
                truck_head_2.position.x = 0;
                truck_head_2.position.y = 30;
                truck_head_2.position.z = -(container_length/2 + truck_head_length_2/2);
                scene.add( truck_head_2 );
                
                truck_head_chimney_radius = 7;
                var truck_head_chimney1 = new THREE.Mesh(
                    new THREE.CylinderGeometry( truck_head_chimney_radius, truck_head_chimney_radius, 300, 20 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_head_chimney1.position.x = 100;
                truck_head_chimney1.position.y = 50;
                truck_head_chimney1.position.z = -(container_length/2 + truck_head_chimney_radius/2);
                scene.add( truck_head_chimney1 );
                
                var truck_head_chimney2 = new THREE.Mesh(
                    new THREE.CylinderGeometry( truck_head_chimney_radius, truck_head_chimney_radius, 300, 20 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_head_chimney2.position.x = -100;
                truck_head_chimney2.position.y = 50;
                truck_head_chimney2.position.z = -(container_length/2 + truck_head_chimney_radius/2);
                scene.add( truck_head_chimney2 );
        
                var truck_wheel_1 = new THREE.Mesh(new THREE.CylinderGeometry( 50, 50, 20, 50 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_wheel_1.position.x = 110;
                truck_wheel_1.position.y = -100;
                truck_wheel_1.position.z = -(container_length/2 + truck_head_length_2/2 + 20) ;
                truck_wheel_1.rotation.x = 0;
                truck_wheel_1.rotation.y = 0;
                truck_wheel_1.rotation.z = 1.6;
                scene.add( truck_wheel_1 );
                
                var truck_wheel_2 = new THREE.Mesh(new THREE.CylinderGeometry( 50, 50, 20, 50 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_wheel_2.position.x = -110;
                truck_wheel_2.position.y = -100;
                truck_wheel_2.position.z = -(container_length/2 + truck_head_length_2/2 + 20);
                truck_wheel_2.rotation.x = 0;
                truck_wheel_2.rotation.y = 0;
                truck_wheel_2.rotation.z = 1.6;
                scene.add( truck_wheel_2 );

                offset_2 = -240;
                var truck_wheel_5 = new THREE.Mesh(new THREE.CylinderGeometry( 50, 50, 20, 50 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_wheel_5.position.x = container_width/2 + 5;
                truck_wheel_5.position.y = -100;
                truck_wheel_5.position.z = (container_length/2 + truck_head_length_2/2 + offset_2) ;
                truck_wheel_5.rotation.x = 0;
                truck_wheel_5.rotation.y = 0;
                truck_wheel_5.rotation.z = 1.6;
                scene.add( truck_wheel_5 );

                var truck_wheel_6 = new THREE.Mesh(new THREE.CylinderGeometry( 50, 50, 20, 50 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_wheel_6.position.x = -container_width/2 - 5;
                truck_wheel_6.position.y = -100;
                truck_wheel_6.position.z = (container_length/2 + truck_head_length_2/2 + offset_2);
                truck_wheel_6.rotation.x = 0;
                truck_wheel_6.rotation.y = 0;
                truck_wheel_6.rotation.z = 1.6;
                scene.add( truck_wheel_6 );

                for (var i in objectArray) {
                    if (objectArray[i].type==2) {
						var cylinderTopR = objectArray[i].length / 2;
						var cylinderHeight = objectArray[i].height;
						if (objectArray[i].place == 1 || objectArray[i].place == 2)
						{
							cylinderHeight = objectArray[i].width;
						}
						
                        var object2 = new THREE.Mesh(
						    new THREE.CylinderGeometry(cylinderTopR, cylinderTopR, cylinderHeight, 60),
                            new THREE.MeshBasicMaterial( { color: Math.random() * 0xffffff , wireframe:false } ) 
                        ); 
                        object2.position.x = objectArray[i].x;
                        object2.position.y = objectArray[i].y;
                        object2.position.z = objectArray[i].z;
                        if (objectArray[i].place==1) {
                            object2.rotation.z = 55;
                        }
                        if (objectArray[i].place==2) {
                            object2.rotation.x = 55;
                        }
                        object2.width = objectArray[i].width;
                        object2.height = objectArray[i].height;
                        object2.length = objectArray[i].length;
                        object2.weight = objectArray[i].weight;
                        object2.platform = objectArray[i].platform;
                        object2.order = objectArray[i].order;
                        object2.materialInfo = objectArray[i].material;
                        object2.boxId = objectArray[i].boxId;
                        object2.type = objectArray[i].type;
                        object2.place = objectArray[i].place;
                        scene.add( object2 );
                        objects.push( object2 );
                    }
                    if (objectArray[i].type==1) {
						if (objectArray[i].place == 200)
						{
							var box_length = objectArray[i].width;
                            var box_width = objectArray[i].length;
						}
						else
						{
							var box_length = objectArray[i].length;
							var box_width = objectArray[i].width;
						}
						var box_height = objectArray[i].height;
                        var object = new THREE.Mesh(
                            new THREE.BoxGeometry( box_width, box_height, box_length, 1, 1, 1 ), 
                            new THREE.MeshBasicMaterial( { color: Math.random() * 0xffffff , wireframe:false } ) 
                        ); 
                        object.position.x = objectArray[i].x;
                        object.position.y = objectArray[i].y;
                        object.position.z = objectArray[i].z;
						object.length = objectArray[i].length;
						object.width = objectArray[i].width;
						object.height = objectArray[i].height;
                        object.weight = objectArray[i].weight;
                        object.platform = objectArray[i].platform;
                        object.order = objectArray[i].order;
                        object.materialInfo = objectArray[i].material;
                        object.boxId = objectArray[i].boxId;
                        object.type = objectArray[i].type;
                        object.place = objectArray[i].place;
                        scene.add( object );
                        objects.push( object );
                    }
                }

                plane = new THREE.Mesh(
                    new THREE.PlaneGeometry( 2000, 2000, 8, 8 ),
                    new THREE.MeshBasicMaterial( { color: 0x000000, opacity: 0.25, transparent: true, wireframe: true } )
                );
                plane.visible = true;
                scene.add( plane );
                projector = new THREE.Projector();
                renderer = new THREE.WebGLRenderer( { antialias: true } );
                renderer.sortObjects = false;
                renderer.setSize( window.innerWidth, window.innerHeight );
                renderer.shadowMapEnabled = true;
                renderer.shadowMapType = THREE.PCFShadowMap;
                container.appendChild( renderer.domElement );

                stats = new Stats();
                stats.domElement.style.position = 'absolute';
                stats.domElement.style.top = '0px';
                container.appendChild( stats.domElement );

                window.addEventListener( 'resize', onWindowResize, false );
                renderer.domElement.addEventListener( 'mousemove', onDocumentMouseMove, false );
                renderer.domElement.addEventListener( 'mousedown', onDocumentMouseDown, false );
                renderer.domElement.addEventListener( 'mouseup', onDocumentMouseUp, false );
            }

            function onDocumentMouseMove( event ) {
                event.preventDefault();
                mouse.x = ( event.clientX / window.innerWidth ) * 2 - 1;
                mouse.y = - ( event.clientY / window.innerHeight ) * 2 + 1;
                var vector = new THREE.Vector3( mouse.x, mouse.y, 0.5 );
                projector.unprojectVector( vector, camera );
                var raycaster = new THREE.Raycaster( camera.position, vector.sub( camera.position ).normalize() );
                var intersects = raycaster.intersectObjects( objects );
                if ( intersects.length > 0 ) {
                    if ( INTERSECTED != intersects[ 0 ].object ) {
                        INTERSECTED = intersects[ 0 ].object;
                        plane.position.copy( INTERSECTED.position );
                        plane.lookAt( camera.position );
                    }
                    container.style.cursor = 'pointer';
                } else {
                    container.style.cursor = 'auto';
                }
            }

            function onDocumentMouseDown( event ) {
                event.preventDefault();
                var vector = new THREE.Vector3( mouse.x, mouse.y, 0.5 );
                projector.unprojectVector( vector, camera );
                var raycaster = new THREE.Raycaster( camera.position, vector.sub( camera.position ).normalize() );
                var intersects = raycaster.intersectObjects( objects );
                if ( intersects.length > 0 ) {
                    controls.enabled = false;  
                    SELECTED = intersects[ 0 ].object;
                    var info = '<B>' + 
                        'boxId: ' + SELECTED.boxId +
                        '</br> x: ' + SELECTED.position.x + 
                        '</br> y: ' + SELECTED.position.y + 
                        '</br> z: ' + SELECTED.position.z + 
                        '</br> width: ' + SELECTED.width + 
                        '</br> height: ' + SELECTED.height + 
                        '</br> length: ' + SELECTED.length + 
                        '</br> weight: ' + SELECTED.weight +
                        '</br> platform: ' + SELECTED.platform +
                        '</br> order: ' + SELECTED.order +
                        '</br> material: ' + SELECTED.materialInfo + 
                        '</br> type: ' + SELECTED.type + 
                        '</br> place: ' + SELECTED.place + 
                        '</B>' +
                        '</br>' + 
                        '--------------------------' + 
                        '</br>' +
                        'type(1:箱体 2:圆柱体)' +
                        '</br>' +
                        'place(1:品字型 2:田字型)';
                    $("#objectInfo").html(info);
                }
            }

            function onDocumentMouseUp( event ) {
                event.preventDefault();
                controls.enabled = true;
                if ( INTERSECTED ) {
                    plane.position.copy( INTERSECTED.position );
                    SELECTED = null;
                }
                container.style.cursor = 'auto';
            }

            function onWindowResize() {
                camera.aspect = window.innerWidth / window.innerHeight;
                camera.updateProjectionMatrix();
                renderer.setSize( window.innerWidth, window.innerHeight );
            }

            function animate() {
                requestAnimationFrame( animate );
                render();
                stats.update();
            }

            function render() {
                controls.update();
                renderer.render( scene, camera );
            }

        </script>
        <div id="objectInfo" class="a2"><br/>点击物体获取相关属性</div>
        <style>
            .a2{position:absolute; left:20px; top:50px; bottom:0px; width:180px; height:250px; z-index:9999; background: #00FFFF; font-weight:bold; }
        </style>
    </body>
</html>